package com.nw.news.bean;

import android.os.Parcel;
import android.os.Parcelable;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * 幼儿
 */
@Table(name = "t_child")
public class Child implements Parcelable {

	@Column(name = "id", isId = true, autoGen = false)
	private int id;
	@Column(name = "name")
	private String name;// 姓名
	@Column(name = "idCardNo")
	private String idCardNo;// 身份证号
	@Column(name = "gender")
	private String gender;// 性别
	@Column(name = "gradeId")
	private int gradeId;// 班级ID
	@Column(name = "gradeName")
	private String gradeName;// 班级ID
	@Column(name = "schoolId")
	private int schoolId;// 学校ID
	@Column(name = "schoolName")
	private String schoolName;// 学校ID

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdCardNo() {
		return idCardNo;
	}

	public void setIdCardNo(String idCardNo) {
		this.idCardNo = idCardNo;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getGradeId() {
		return gradeId;
	}

	public void setGradeId(int gradeId) {
		this.gradeId = gradeId;
	}

	public String getGradeName() {
		return gradeName;
	}

	public void setGradeName(String gradeName) {
		this.gradeName = gradeName;
	}

	public int getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(int schoolId) {
		this.schoolId = schoolId;
	}

	public String getSchoolName() {
		return schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(this.id);
		dest.writeString(this.name);
		dest.writeString(this.idCardNo);
		dest.writeString(this.gender);
		dest.writeInt(this.gradeId);
		dest.writeString(this.gradeName);
		dest.writeInt(this.schoolId);
		dest.writeString(this.schoolName);
	}

	public Child() {
	}

	protected Child(Parcel in) {
		this.id = in.readInt();
		this.name = in.readString();
		this.idCardNo = in.readString();
		this.gender = in.readString();
		this.gradeId = in.readInt();
		this.gradeName = in.readString();
		this.schoolId = in.readInt();
		this.schoolName = in.readString();
	}

	public static final Creator<Child> CREATOR = new Creator<Child>() {
		@Override
		public Child createFromParcel(Parcel source) {
			return new Child(source);
		}

		@Override
		public Child[] newArray(int size) {
			return new Child[size];
		}
	};
}
